/*
 * @Date: 2020-06-22 00:08:59
 * @LastEditors: 杨光辉(GerhardYang)
 * @LastEditTime: 2021-06-04 23:55:42
 * @FilePath: \supermap-iportal10i-onemap-vue\src\assets\scripts\noCopy.js
 * @Description:
 */
function KeyDown() {
  return (
    !(
      112 == event.keyCode ||
      123 == event.keyCode ||
      (event.ctrlKey && 82 == event.keyCode) ||
      (event.ctrlKey && 78 == event.keyCode) ||
      (event.shiftKey && 121 == event.keyCode) ||
      (event.altKey && 115 == event.keyCode) ||
      ("A" == event.srcElement.tagName && event.shiftKey)
    ) || ((event.keyCode = 0), (event.returnValue = false))
  );
}
(document.onkeydown = KeyDown),
  (document.oncontextmenu = function () {
    event.returnValue = false;
  }),
  (document.onselectstart = function () {
    event.returnValue = false;
  }),
  (document.oncopy = function () {
    event.returnValue = false;
  });
